package com.zx.DAO;

import com.zx.entity.Role;
import com.zx.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 程仟磊
 * @date 2021/7/24
 */
@Repository
public interface RoleDao {
    List<Role> findAllRole();
    List<Role> findRoleNoUid(int usid);

    void addMenuToRole(@Param("rid") int rid,@Param("mid")int mid);

    int findRoleByRname(String rname);

    void addRole(String rname);
    int deleteUr(int rid);
    int deleteRm(int rid);
    int deleteRole(int rid)
;}
